package com.gong.DesignPattern.CompositePattern;

import java.util.ArrayList;
import java.util.List;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/17 0017 9:28
 */
public class Emplore {

    private String name;
    private String em;//职位
    private int shouru;
    public List<Emplore> list = new ArrayList<>();

    @Override
    public String toString() {
        return "Emplore{" +
                "name='" + name + '\'' +
                ", em='" + em + '\'' +
                ", shouru=" + shouru +
                '}';
    }

    public Emplore(String name, String em, int shouru) {
        this.name = name;
        this.em = em;
        this.shouru = shouru;
    }
}
